//
//  BasePickerView.h
//  ACMediaFrameExample
//
//  Created by 付顺龙 on 2019/3/11.
//  Copyright © 2019 ArthurCao. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "YYKit.h"
#define KEY_COMPONENT         @"component"
#define KEY_ROW                     @"row"

NS_ASSUME_NONNULL_BEGIN

@class BasePickerView;

@protocol BasePickerViewDelegate <NSObject>

-(void)clickOK:(id)selectData pickerView:(BasePickerView *)pickerView;

@end

@interface BasePickerView : UIView

@property (nonatomic,weak) id<BasePickerViewDelegate> delegate;

@property (nonatomic, assign)BOOL isDatePicker;//必须在子类中设置：YES时间选择器，NO其他选择器
@property (nonatomic, strong)UIView* viewBg;
@property (nonatomic, strong)UIButton* btnCancel;
@property (nonatomic, strong)UIButton* btnOk;
@property (nonatomic, strong)UIPickerView* pickerView;
@property (nonatomic, strong)UIDatePicker* datePickerView;


- (void)show;
- (void)hide;
- (void)onOK;
@end

NS_ASSUME_NONNULL_END
